package com.yike.user.service;

import com.yike.user.entity.UserFile;
import com.yike.user.param.UserFilePageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 用户文件表 服务类
 *
 * @author Sakura
 * @since 2024-08-30
 */
public interface UserFileService extends BaseService<UserFile> {

    /**
     * 保存
     *
     * @param userFile
     * @return
     * @throws Exception
     */
    boolean saveUserFile(UserFile userFile) throws Exception;

    /**
     * 修改
     *
     * @param userFile
     * @return
     * @throws Exception
     */
    boolean updateUserFile(UserFile userFile) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteUserFile(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param userFilePageParam
     * @return
     * @throws Exception
     */
    Paging<UserFile> getUserFilePageList(UserFilePageParam userFilePageParam) throws Exception;

}
